import './App.css';
// import Home from './Home'
// import { Route, Redirect } from 'react-router-dom'
// import Home from './components2/Home'
// import Detail from './components2/Detail'
import RouterView from './router/RouterView'
import routerList from './router/routerConfig'
import './mock'

function App() {
  return (
    <div className="App"> 
      {/* <Home/> */}


      {/* <Redirect to="/home" from="/"/>
      <Route path="/home" component = { Home }/>
      <Route path="/detail" component = { Detail }/> */}

      <RouterView routes = { routerList }/>

    </div>
  );
}

export default App;
